<%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2021/3/20
  Time: 11:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>cookie information</title>
</head>
<body>
   <%
       Cookie[]cr=request.getCookies();
       for(int i=0;cr!=null&&i<cr.length;i++){
           out.print("<h1>");
           //cr[i].setMaxAge();//存活时间，单位是秒
           out.print(cr[i].getName()+"="+cr[i].getValue());
           out.print("</h1>");
       }
   %>
</body>
</html>
